import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;

import org.htmlparser.util.ParserException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * Parse by looking for the string <a
 * href="/homeinspectors/California/Fallbrook.aspx">
 * 
 * @author mkvalsvik
 * 
 */
public class AshiMetroParser {
	
	private static Logger logger = LoggerFactory
			.getLogger(AshiMetroParser.class.getName());

	private static final String INPUT_DIR = "/mads/hobby/it/data/metros";

	public static void main(String[] args) {
		HtmlLinkExtractor extractor = new HtmlLinkExtractor(new File("extractedInspectorLinks.txt"), "http://www.ashi.org");
		extractor.processDir(new File(INPUT_DIR));
	}
	
}
